package com.example.nettyclient.viewModel;

import androidx.lifecycle.ViewModel;

import com.example.nettyclient.bean.MessageBean;
import com.example.nettyclient.netty.NettyTcpClient;
import com.example.nettyclient.viewModel.base.UnPeekLiveData;

import java.util.List;

public class SharedViewModel extends ViewModel {
    //系统状态
    public final UnPeekLiveData<Boolean> connectState = new UnPeekLiveData<>();//网络连接是否成功
    public final UnPeekLiveData<Boolean> loginState = new UnPeekLiveData<>();//登录是否成功
    public final UnPeekLiveData<List<MessageBean>> allMessages = new UnPeekLiveData<>();//消息
    public final UnPeekLiveData<NettyTcpClient> mNettyTcpClient = new UnPeekLiveData<>();//Netty客户端
}
